using AutoMapper;
using ChikovMF.Application.Common.Interfaces;
using ChikovMF.Application.Common.Mappings;
using ChikovMF.Context;

namespace ChikovMF.Tests
{
    public abstract class TestCommandBase : IDisposable
    {
        protected readonly ChikovMFContext _context;

        public TestCommandBase()
        {
            _context = ChikovMFContextFactory.Create();
        }

        public void Dispose()
        {
            ChikovMFContextFactory.Destroy(_context);
        }
    }
}